add_executable(testgeom
        BoundaryTest.cpp
        GeoConvHelperTest.cpp
        PositionVectorTest.cpp
        GeomHelperTest.cpp
        )
add_test(NAME testgeom COMMAND $<TARGET_FILE:testgeom>)
set_target_properties(testgeom PROPERTIES OUTPUT_NAME_DEBUG testgeomD)

if (MSVC OR APPLE)
    target_link_libraries(testgeom ${commonlibs} ${GTEST_BOTH_LIBRARIES})
else ()
    target_link_libraries(testgeom -Wl,--start-group ${commonlibs} -Wl,--end-group ${GTEST_BOTH_LIBRARIES} -lpthread -lm)
endif ()
